﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL.User
{
    interface IUserService
    {
        Models.User ExistUserByUserName(string username);
        Models.User ExistUserByUserNameAndPwd(string username, string pwd);
        Models.UserInfo GetUserInfo(Models.User user);
        Models.ResumeInfo GetResumeInfo(Models.User user);

        List<Models.User> GetList(ref int totalCount, int pageIndex = 1, int pageSize = 12, string orderBy = "CreatedAt Desc");

        List<Models.User> GetList(ref int totalCount, string[] tags, int pageIndex = 1, int pageSize = 12, string orderBy = "CreatedAt Desc");


        bool updateUser(Models.User user);
        bool updateUserInfo(Models.UserInfo userInfo);
        bool updateResumeInfo(Models.ResumeInfo ResumeInfo);
        bool createUser(Models.User user, Models.UserInfo userInfo, Models.ResumeInfo resumeInfo);
    }
}
